<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>

<html>
<style type="text/css">
	columnleft {
		margin-left: 1px;
		margin-top: 15px;
		width: 245px;
		float: left;
	}
	
	columnMiddle {
		height:500px;
		margin-left: 250px;
		min-height: 500px;
		padding: 5px;
		width: 99%;
		overflow:visible;
		margin-top: 16px;
	}
	ul.list_subsub_kisa li a{
		color:#6DB1E7;
		display:block;
		height:25px;
		line-height:25px;
		list-style-image:none;
		list-style-position:outside;
		list-style-type:none;
		margin:0;
		padding:0 0 1px 25px;
		text-decoration:underline;
		width:280px;	
	}
	ul.list_subsub_kisa li a:hover {
		color:#F85F3B;
		text-decoration:none;
	}
</style>
<head>
<title>List Voting Options</title>
<!-- <link href="../css/style.css" rel="stylesheet" type="text/css" />   -->
</head>
<body>
<f:view>
	<h:form>
	<h4 align="center">List Voting Options</h4>
	<table>
		<tr>
			<!--<td>
				<div class="columnleft"><a4j:include  viewId="simpleTree.jsp" /></div>
			</td> -->
			<td>
				<ul class="list_subsub_kisa">
				<li>
					<a href="listAvailableVotings.jsf" title="AvailableVotings">List Voting Options</a>
				</li>
				<li>
					<a href="mainUserForm.jsf" title="KullaniciAnaSayfa">Kullanici Ana Sayfasi</a>
				</li>
				</ul>
			</td>
			<td>
				<div class="columnMiddle"><rich:spacer width="1" height="50" />
					<rich:panel style="width:720px;background-color: #ebf3fd;">
						<f:facet name="header">
							<h:outputText value="Voting Options"></h:outputText>
						</f:facet>
						<h:panelGrid columns="2" style="width:500px;">
			
							<h:outputText value="" /><h:outputText value="" />
							<h:outputText value="" /><h:outputText value="" />
							
							<h:outputText value="Voting Name:" />
							<h:inputText id="lastName" size="10"
								value="#{listVotingOptionsController.votingName}" />
							
							
							<h:outputText value="" /><h:outputText value="" />
							<h:outputText value="" /><h:outputText value="" />
							<h:outputText value="" /><h:outputText value="" />
							
							<h:selectOneRadio value="en/US" valueChangeListener="#{calendarBean.selectLocale}" >
			                    <a4j:support event="onclick" />
			                    <f:selectItem itemLabel="Antalya" itemValue="en/US"/>
			                    <f:selectItem itemLabel="Trabzon" itemValue="de/DE"/>
			                    <f:selectItem itemLabel="Izmir" itemValue="fr/FR"/>
			                    <f:selectItem itemLabel="Aydin" itemValue="ru/RU"/>
			                    <f:selectItem itemLabel="Mugla" itemValue="ru/RU"/>
			                </h:selectOneRadio> 
			                
			                <h:outputText value="" />
							<h:outputText value="" /><h:outputText value="" />
							<h:outputText value="" /><h:outputText value="" />
							<h:outputText value="" /><h:outputText value="" />
							
			                <h:commandButton value="Vote"
								action="#{listVotingOptionsController.vote}" />
							<h:commandButton value="Cancel"
								action="#{listVotingOptionsController.cancelVoting}" />

							<h:outputText value="" />
							<h:outputText value="" />
							
						</h:panelGrid>
					</rich:panel>
				</div>
			</td>
		</tr>
	</table>
	</h:form>
</f:view>
</body>
</html>